package com.mrtan.service;

import com.mrtan.bean.OrderProcure;
import com.mrtan.bean.OrderSell;
import com.mrtan.dto.FinancialDto;
import com.mrtan.dto.HomeDto;
import com.mrtan.dto.InandOutInfoDto;
import com.mrtan.dto.YearDto;
import com.mrtan.dto.YearsDto;
import com.mrtan.vo.*;

import java.math.BigDecimal;
import java.util.List;

public interface OrderService {

    void addSell(OrderInsertVO orderInsertVO);

    List<OrderSell> orderList(OrderShowWhereVO orderShowWhereVO);
    List<OrderProcure> orderProductList(OrderProcureVO orderProcureVO);

    List<OrderSell> orderListw();

    List<OrderSell> orderListy();
    void addOrder(OrderVO orderVO);

    List<OrderSell> findAllOrder();


    void addPurchase(PurchaseOrderVO purchaseOrderVO);

    FinancialDto findFinancial(int year);

    List<Integer> findFinancialyear();

    HomeDto showhome();

    OrderSell findbyorderId(int order);
    List<InandOutInfoDto> findinanoutbyorder(int order);

    BigDecimal getAllPrice();

    int getAllOrderCount();

    List<YearsDto> findOrderCountAndPrice(String year);
    int updateOrderStatus(OrderVO orderVO);
    int updateSell(OrderUpdateWhoVo orderUpdateWhoVo);

}
